package game.players.goalkeeper.opp;

import com.uqbar.vainilla.appearances.Animation;
import com.uqbar.vainilla.appearances.Sprite;

import game.players.SoccerPlayer;
import game.players.states.PassingPlayer;

public class PassingGoalkeeperCPUOpp extends PassingPlayer {

	public PassingGoalkeeperCPUOpp(SoccerPlayer player, SoccerPlayer target) {
		super(player, target);

		player.setAppearance(new Animation(0.3,
				Sprite.fromImage("/images/arquero_arco.png").crop(21, 11, 84, 77), 
				Sprite.fromImage("/images/arquero_arco.png").crop(315, 535, 90, 75)
				));
	}

	@Override
	protected void changeToStationary() {
		this.getPlayer().setState(new GoalkeeperWithoutBallOpp(this.getPlayer()));
	}

	@Override
	public boolean isRight() {
		return false;
	}

	@Override
	public void loseTheBall() {
		// No pierde la pelota
	}

}
